#include "base\logviewhost.h"
using namespace Base::Log;

void RegisterLogViewer(LogWriterBase* pLogWriter)
{
    CLogViewerHost::GetInstance().RegisterViewer(pLogWriter);
}

void UnRegisterLogViewer(LogWriterBase* pLogWriter)
{
    CLogViewerHost::GetInstance().UnRegisterViewer(pLogWriter);
}

void WriteLog(const unsigned int uLevel, const wchar_t* wszFile, 
              const wchar_t* wszFunction, const unsigned int uLine, 
              const wchar_t* wszFilter, const wchar_t* wszFormat, ...)
{
    CLogViewerHost::GetInstance().NotifyListener();
}